---
layout: "default"
title: "StrideThroughIterator"
description: "Swift documentation for 'StrideThroughIterator': An iterator for StrideThrough&lt;Element&gt;."
keywords: "StrideThroughIterator,struct,swift,documentation,next"
root: "/v3.0"
---

<div class="intro-declaration"><code class="language-swift">struct StrideThroughIterator&lt;Element : Strideable&gt;</code></div>

<div class="discussion comment">
    <p>An iterator for <code>StrideThrough&lt;Element&gt;</code>.</p>
</div>

<table class="standard">
<tr>
<th id="inheritance">Inheritance</th>
<td>
<code class="inherits">IteratorProtocol</code>
<span class="viz"><a href="hierarchy/">View Protocol Hierarchy &rarr;</a></span>
</td>
</tr>



<tr>
<th>Import</th>
<td><code class="language-swift">import Swift</code></td>
</tr>

</table>







<h3>Instance Methods</h3>
<div class="declaration" id="func-next">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-next">mutating func next()</a>
        
<div class="comment collapse" id="comment-func-next"><div class="p">
    <p>Advances to the next element and returns it, or <code>nil</code> if no next element
exists.</p>

<p>Once <code>nil</code> has been returned, all subsequent calls return <code>nil</code>.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">mutating func next() -&gt; Element?</code>
    
    
</div></div>
</div>


